Repository navigation
Conversation
Commit fda2f62 ("drm/vc4: Fix the zpos range of the writeback overlay planes") raised the zpos range of the 32 writeback overlay planes to 1..VC4_NUM_TXP_OVERLAY_PLANES + 1 (33), but every CRTC's cursor plane is still created with a zpos and maximum of VC4_NUM_OVERLAY_PLANES + 1 (17). On the writeback CRTC, overlays with a zpos from 18 to 33 therefore sit above the cursor, and the cursor can't be moved on top of them. Use VC4_NUM_TXP_OVERLAY_PLANES + 1 as the default and maximum zpos of the cursor plane on the writeback CRTC, so it starts on top again as it does on the other CRTCs. The other CRTCs keep VC4_NUM_OVERLAY_PLANES + 1. Tested on a Raspberry Pi 5 (6.18.39, vc4 module with fda2f62 and this change, loaded from the initramfs): - writeback CRTC cursor plane: zpos 17, range 1..17 before; zpos 33, range 1..33 after - the cursor planes of the other three CRTCs are unchanged (17, 1..17) - no plane has a zpos outside its range (0 of 56) - igt kms_properties 10 pass / 0 fail; kms_writeback, kms_atomic, kms_plane_multiple and kms_cursor_legacy give the same results as before Suggested by popcornmix in the review of raspberrypi#7800. This change and its description were written with the help of an AI coding assistant (Claude); the testing above was done on real hardware. Fixes: 5c85a4b ("drm/vc4: Assign 32 overlay planes to writeback only") Signed-off-by: Roy <rongh7426@gmail.com>
Collaborator
|
Thanks. Claude has a few minors: Looks correct to me. Now the cursor on the writeback CRTC uses the same zpos range as that CRTC's overlays (1..33), as I suggested in #7800. Small points:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #7800, as suggested by @popcornmix in its review.
After #7800 the 32 writeback overlay planes have a zpos range of 1..33, but the cursor plane on the writeback CRTC was still created with zpos 17 and a maximum of 17, so overlays at 18..33 sat above it and it couldn't be moved on top. This gives the cursor on the writeback CRTC a default and maximum zpos of
VC4_NUM_TXP_OVERLAY_PLANES + 1; the other CRTCs keepVC4_NUM_OVERLAY_PLANES + 1.Tested on a Pi 5 (6.18.39, vc4 module with #7800 and this change, loaded from the initramfs):
The change and description were written with help from an AI coding assistant (Claude); the testing was done on real hardware.